package main

import (
    "os";
    "flag";
)

var omitNewline = flag.Bool("n", false, "dont print final newline")

const (
    Space = " ";
    Newline = "\n";
)

func main() {
    flag.Parse();
    var s string = "";
    for i := 0; i < flag.NArg(); i++ {
	if i > 0 {
	    s += Space
	}
	s += flag.Arg(i)
    }
    
    if !*omitNewline {
	s += Newline
    }

    say_hello(s);
}

func say_hello(s string) {
	os.Stdout.WriteString("echo:" + s);
}
